// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'ProductWorkShopId',
        footer: "Foots",
        cnName: '车间作业单',
        name: 'ProductWorkShop',
        newTabEdit: false,
        url: "/ProductWorkShop/",
        sortName: "ProductWorkShopId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"BillNo":"","BillDate":"","ProductProcessNo":"","ProductProcessName":"","ProductProcessTypeId":"","DepartmentId":"","ReportWorkTypeId":"","GroupId":"","WorkerId":"","PlanQty":"","AssignQty":"","QualifyQty":"","UnQualifyQty":"","ScrapQty":""};
    const editFormOptions = [[{"title":"车间作业单号","field":"BillNo","type":"text"},
                               {"title":"单据日期","required":true,"field":"BillDate","type":"text"},
                               {"dataKey":"工序信息","data":[],"title":"工序编码","required":true,"field":"ProductProcessNo","type":"select"}],
                              [{"dataKey":"工序类型","data":[],"title":"工序类型","field":"ProductProcessTypeId","type":"select"},
                               {"dataKey":"部门","data":[],"title":"部门","field":"DepartmentId","type":"select"},
                               {"title":"工序名称","required":true,"field":"ProductProcessName","type":"text"}],
                              [{"dataKey":"报工方式","data":[],"title":"报工方式","field":"ReportWorkTypeId","type":"select"},
                               {"dataKey":"班组信息","data":[],"title":"班组","field":"GroupId","type":"select"},
                               {"dataKey":"职员","data":[],"title":"作业人员","field":"WorkerId","type":"select"}],
                              [{"title":"计划数量","field":"PlanQty","type":"decimal"},
                               {"title":"派工数量","field":"AssignQty","type":"decimal"},
                               {"title":"合格数量","field":"QualifyQty","type":"decimal"}],
                              [{"title":"不合格数量","field":"UnQualifyQty","type":"decimal"},
                               {"title":"报废数量","field":"ScrapQty","type":"decimal"}]];
    const searchFormFields = {"BillNo":"","BillDate":""};
    const searchFormOptions = [[{"title":"车间作业单号","field":"BillNo"},{"title":"单据日期","field":"BillDate"}]];
    const columns = [{field:'ProductWorkShopId',title:'生产车间作业标识',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ProductNoticeId',title:'生产通知单标识',type:'int',width:110,hidden:true,require:true,align:'left'},
                       {field:'ProductTaskProcessId',title:'生产任务工序明细标识',type:'int',width:110,hidden:true,require:true,align:'left'},
                       {field:'ProductNoticeNo',title:'生产通知单号',type:'string',width:110,require:true,align:'left'},
                       {field:'BillNo',title:'车间作业单号',type:'string',link:true,width:110,align:'left'},
                       {field:'BillDate',title:'单据日期',type:'datetime',width:110,require:true,align:'left'},
                       {field:'ProductProcessId',title:'工序标识',type:'int',width:110,hidden:true,require:true,align:'left'},
                       {field:'ProductProcessNo',title:'工序编码',type:'string',bind:{ key:'工序信息',data:[]},width:110,require:true,align:'left'},
                       {field:'ProductProcessName',title:'工序名称',type:'string',width:110,require:true,align:'left'},
                       {field:'ProductProcessTypeId',title:'工序类型',type:'int',bind:{ key:'工序类型',data:[]},width:110,align:'left'},
                       {field:'DepartmentId',title:'部门',type:'int',bind:{ key:'部门',data:[]},width:110,align:'left'},
                       {field:'DepartmentName',title:'部门名称',type:'string',width:110,hidden:true,align:'left'},
                       {field:'ReportWorkTypeId',title:'报工方式',type:'int',bind:{ key:'报工方式',data:[]},width:110,align:'left'},
                       {field:'GroupId',title:'班组',type:'int',bind:{ key:'班组信息',data:[]},width:110,align:'left'},
                       {field:'WorkerId',title:'作业人员',type:'string',bind:{ key:'职员',data:[]},width:120,align:'left'},
                       {field:'PlanQty',title:'计划数量',type:'int',width:110,align:'left'},
                       {field:'AssignQty',title:'派工数量',type:'decimal',width:110,align:'left'},
                       {field:'QualifyQty',title:'合格数量',type:'decimal',width:110,align:'left'},
                       {field:'UnQualifyQty',title:'不合格数量',type:'decimal',width:110,align:'left'},
                       {field:'ScrapQty',title:'报废数量',type:'decimal',width:110,align:'left'},
                       {field:'CreateID',title:'创建人标识',type:'int',width:80,hidden:true,align:'left'},
                       {field:'Creator',title:'创建人名称',type:'string',width:100,align:'left'},
                       {field:'CreateDate',title:'创建日期',type:'datetime',width:110,align:'left'},
                       {field:'ModifyID',title:'修改人标识',type:'int',width:80,hidden:true,align:'left'},
                       {field:'Modifier',title:'修改人名称',type:'string',width:100,align:'left'},
                       {field:'ModifyDate',title:'修改日期',type:'datetime',width:110,align:'left'},
                       {field:'AuditDate',title:'审核日期',type:'datetime',width:110,align:'left'},
                       {field:'AuditStatus',title:'审核状态',type:'int',width:110,align:'left'},
                       {field:'AuditId',title:'审核人标识',type:'int',width:110,align:'left'},
                       {field:'Auditor',title:'审核人',type:'string',width:120,align:'left'},
                       {field:'ProductAssignId',title:'生产派工标识',type:'int',width:80,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}